//action
const add = {
    type: "ADD",
    payload: 1
}

const addTo = (num) => {
    return {
        type: "ADD",
        payload: num
    }
}

const reduce = (num) => {
    return {
        type: 'REDUCE',
        payload: num
    }
}

const getList = (arr) => {
    return {
        type: 'GET_LIST',
        payload: arr
    }
}

export {
    add,
    addTo,
    reduce,
    getList
}
